package com.vcourse.service.api.user.feign.fallback;

import com.vcourse.commons.result.R;
import com.vcourse.service.api.user.feign.MemberService;
import com.vcourse.service.base.dto.MemberDto;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author Zengsh123
 * @date 2020-06-13 14:56
 */

@Service
@Slf4j
public class MemberServiceFallBack implements MemberService {
    @Override
    public MemberDto getMemberDtoByMemberId(String memberId) {
        log.info("熔断保护");
        return null;
    }

    @Override
    public R countRegistryNum(String day) {
        log.info("熔断保护");
        return R.ok().data(0);
    }
}
